package com.newy.domain.sys.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * 参数定义的值对象，对应paramDef.js文件中的配置
 * @author linzongxue
 *
 */
public class ParamDef {
	private String name;
	private String text;
	private Object defaultValue;
	private List<String> values = new ArrayList<String>();
	private Type type = Type.sys; //设置了默认值
	private boolean editable = true; //设置了默认值
	private Object value; //参数当前值，不属于参数定义的属性
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Object getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(Object defaultValue) {
		this.defaultValue = defaultValue;
	}
	public List<String> getValues() {
		return values;
	}
	public void setValues(List<String> values) {
		this.values = values;
	}
	public boolean isEditable() {
		return editable;
	}
	public void setEditable(boolean editable) {
		this.editable = editable;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}

	/**
	 * 参数类型枚举，sys-系统参数，user-用户参数
	 * @author linzongxue
	 *
	 */
	public enum Type{sys, user}
}
